package main

import "fmt"

// 自定义类型
type myInt int64

// 类型别名（类似于byte rune）
type twoInt = int

func main() {

	var myNum myInt = 256
	fmt.Printf("myNum: %v type:%T\n", myNum, myNum) // myNum: 256 type:main.myInt

	var twoNum twoInt = 256
	fmt.Printf("twoNum: %v type:%T\n", twoNum, twoNum) // twoNum: 256 type:int

	var c rune // rune类型内置类型别名，是为了代码语义化
	c = '为'
	fmt.Printf("c: %v type:%T\n", c, c) // c: 20026 type:int32
}
